package com.hpf.community.pojo;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 角色权限表实体类  与数据库一一对应,请勿轻易修改
 * </p>
 *
 * @author huangpengfei
 * @version 2020年04月04日---22:57:14
 * @description
 */
@Data
public class RoleAuth extends Model<RoleAuth> {

    private static final long serialVersionUID = 1L;

    public static final String AUTH_ID = "AUTH_ID";

    public static final String ROLE_ID = "ROLE_ID";

    public static final String ID = "ID";


    @TableId("ID")
    private String id;

    @TableField("AUTH_ID")
    private String authId;

    @TableField("ROLE_ID")
    private String roleId;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
